package com.lxh.weekendmvc.services;

import com.github.pagehelper.PageInfo;
import com.lxh.weekendmvc.entity.Emp;

import java.sql.SQLException;
import java.util.Map;

public interface EmpServices {
    Emp doLogin(String ename, String pwd);

    PageInfo<Emp> getEmpByPage(Map<String, String> emps);

    boolean addEmp(Emp emp);

    boolean checkName(String ename);

    Emp getEmpByEno(Integer eno);

    boolean updateEmp(Emp emp);

    boolean delEmp(Integer eno);
}
